<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改terminalType')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-terminal-edit" th:object="${tbPartTerminalType}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">
                <label class="col-sm-3 control-label">终端型号名称：</label>
                <div class="col-sm-8">
                    <input name="terminalModelName" th:field="*{terminalModelName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">终端型号编号：</label>
                <div class="col-sm-8">
                    <input name="terminalModelId" th:field="*{terminalModelId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">终端种类/判断 直流、异步、永磁同步、开关磁阻：</label>
                <div class="col-sm-8">
                    <select name="terminalType" class="form-control m-b">
                        <option value="">所有</option>
                    </select>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">终端品牌：</label>
                <div class="col-sm-8">
                    <input name="terminalBrand" th:field="*{terminalBrand}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">生产厂商名称：</label>
                <div class="col-sm-8">
                    <input name="manufacturersName" th:field="*{manufacturersName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">车载终端性能参数/一下是车载终端参数字段：</label>
                <div class="col-sm-8">
                    <input name="carTerminalNumber" th:field="*{carTerminalNumber}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">工作电压：</label>
                <div class="col-sm-8">
                    <input name="workingVoltage" th:field="*{workingVoltage}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">固件版本号：</label>
                <div class="col-sm-8">
                    <input name="firmwareVersionNumber" th:field="*{firmwareVersionNumber}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">功耗：</label>
                <div class="col-sm-8">
                    <input name="powerWiddipation" th:field="*{powerWiddipation}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">休眠电流：</label>
                <div class="col-sm-8">
                    <input name="sleepCurrent" th:field="*{sleepCurrent}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">内置电池容量：</label>
                <div class="col-sm-8">
                    <input name="batteryCapacity" th:field="*{batteryCapacity}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "terminalType/terminalInformationUpdate";
        $("#form-terminal-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-terminal-edit').serialize());
            }
        }
    </script>
</body>
</html>
